package com.tansun.easycare.rule.common.entity;

import java.util.List;

import org.drools.core.util.StringUtils;

import com.tansun.easycare.core.config.Global;
import com.tansun.easycare.core.persistence.DataEntity;

/**
 * 数据Entity类
 *
 * @author caojianfeng
 * @version 2014-05-16
 */
public abstract class RuleBaseEntity<T> extends DataEntity<T> {

    private static final long serialVersionUID = 1L;

    private String rankRelationId;   //层级关系关联ID
    
    private List<String> rankRelationIds;   //层级关系关联ID列表，包括上级
    public RuleBaseEntity() {
        super();
    }

    public RuleBaseEntity(String id) {
        super(id);
    }




	public String isEmpty(String obj) {
		if(StringUtils.isEmpty(obj))
			return "";
		else
			return obj;
	}



    protected Global global;


    
    public String getRankRelationId() {
		return rankRelationId;
	}

	public void setRankRelationId(String rankRelationId) {
		this.rankRelationId = rankRelationId;
	}

	public List<String> getRankRelationIds() {
		return rankRelationIds;
	}

	public void setRankRelationIds(List<String> rankRelationIds) {
		this.rankRelationIds = rankRelationIds;
	}
	
	
}
